﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;
using Microsoft.Practices.Unity;
using Vit.Web.Mvc.Filters;

namespace Vit.Web
{
    public class ModuleBase : IModule
    {
        protected readonly IUnityContainer unity;

        public ModuleBase(IUnityContainer unity)
        {
            this.unity = unity;
        }

        #region IModule Members

        public virtual void Initialize()
        {
        }

        public virtual void Unload()
        {
        }

        public virtual void RegisterRoutes(RouteCollection routes)
        {
        }

        public virtual void RegisterCatchAllRoutes(RouteCollection routes)
        {
        }

        public virtual void RegisterFilters(IFilterRegistry filterRegistry)
        {
        }

        public virtual void RegisterModelBinders(ModelBinderDictionary modelBinders)
        {
        }

        public virtual void RegisterWithContainer()
        {
        }

        #endregion
    }
}
